<template>
	<el-drawer :title="userName+`的领导评价详情`" v-model="visible" :size="800" destroy-on-close @closed="$emit('closed')">
		<el-container v-loading="loading">
			<el-main>
				<el-form>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="综合评价" prop="evaluateStatusName">{{form.evaluateStatusName}}
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="工作技能" prop="skillLevel">{{form.skillLevel}}/分
							</el-form-item>
						</el-col>
					</el-row>
					<el-row :gutter="24">
						<el-col :lg="12">
							<el-form-item label="学校名称" prop="learnLevel">{{form.learnLevel}}/分
							</el-form-item>
						</el-col>
						<el-col :lg="12">
							<el-form-item label="工作态度" prop="attitudeLevel">{{form.attitudeLevel}}/分
							</el-form-item>
						</el-col>
					</el-row>
					<el-form-item label="备注说明">{{form.remark}}
					</el-form-item>
				</el-form>
				<el-footer style="text-align: center;">
					<el-button @click="visible=false">关闭</el-button>
				</el-footer>
			</el-main>
		</el-container>
	</el-drawer>
</template>

<script>
export default {
	emits: ['success', 'closed'],
	components: {
	},
	data() {
		return {
			loading: false,
			form: {
				recordId:"",
				userName: '',
				evaluateStatusName:'',
				skillLevel:2.5,
				learnLevel:2.5,
				attitudeLevel:2.5,
				remark:''
			},
			visible: false,
			isSaveing: false,
		}
	},
	mounted() {

	},
	methods: {
		//显示
		open(model){
			this.model=model;
			this.visible = true;
			return this;
		},
		//表单注入数据
		setData(data){
			this.userName = data.userName
			this.form.recordId = data.recordId
			this.form.evaluateStatusName = data.evaluateStatusName
			this.form.skillLevel = data.skillLevel
			this.form.learnLevel = data.learnLevel
			this.form.attitudeLevel = data.attitudeLevel
			this.form.remark = data.remark
		},
	}
}
</script>

<style>
</style>
